From: Colin Walters Date: Sat, 14 Oct 2017 00:50:08 +0000 (-0400) Subject: lib/deltas: Use fastpath for regfile writes for bare-user-only X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~30^2~47 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bb05b187b63e9e61745b1ca77640a41c257a741f;p=ostree.git lib/deltas: Use fastpath for regfile writes for bare-user-only Noticed this omission while looking at the code while working on another patch. Closes: #1270 Approved by: jlebon --- diff --git a/src/libostree/ostree-repo-static-delta-processing.c b/src/libostree/ostree-repo-static-delta-processing.c index 84fed682..6596da89 100644 --- a/src/libostree/ostree-repo-static-delta-processing.c +++ b/src/libostree/ostree-repo-static-delta-processing.c @@ -581,8 +581,7 @@ dispatch_open_splice_and_close (OstreeRepo *repo, /* Fast path for regular files to bare repositories */ if (S_ISREG (state->mode) && - (repo->mode == OSTREE_REPO_MODE_BARE || - repo->mode == OSTREE_REPO_MODE_BARE_USER)) + _ostree_repo_mode_is_bare (repo->mode)) { if (!_ostree_repo_open_content_bare (repo, state->checksum, state->content_size,